{literal}
<script type="text/javascript">
    $(document).ready(function(){
        $("#form_unidade").validate({
            rules: {
                //data_inicio: { required: true },
                //data_fim: { required: true}
            },
            messages: {
                //data_inicio: "Obrigatorio",
                //data_fim: { required: "Obrigatorio" }
            },
            submitHandler: function(form) {
				jqAjaxForm(form, "div_resultado");
			}
        });
        

    	$("#data_inicio").datepick({showOn: 'both'});
    	$("#data_fim").datepick({showOn: 'both'});
    	
    	$("#data_inicio").mask("99/99/9999");
    	$("#data_fim").mask("99/99/9999");
    	

    }); //fecha $(

    populaSelect("tipoindicacao", "{/literal}{$_site.url}{literal}", "tipo-indicacao/select-tipo-indicacao?cod={/literal}{$proposta->tipoindicacao_id}{literal}");

	populaSelect("busca_status", "{/literal}{$_site.url}{literal}", "proposta/select-status-proposta?cod={/literal}{$busca_status}{literal}");

    
</script>
{/literal}
<form id="form_unidade" name="form_unidade" method="post" action="{$_site.url}{$acao}">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td></td>
	</tr>
</table>
<br><br>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="mvTituloFundo">
	<tr>
		<td>Relat&oacute;rio de Indica&ccedil;&otilde;es em Propostas Comerciais</td>
	</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">                
	<tr>
    	<td class="contForm">
			<table width="100%" border="0" cellspacing="3" cellpadding="0">
				<tr>
        			<td class="fundoTituloForm bordaFormResp">Tipo de Indica&ccedil;&atilde;o:</td>
                 	<td valign="top" class="bordaFormResp"><select name="tipoindicacao" id="tipoindicacao" class="formulario"></select></td>
				</tr>
				<tr>
        			<td class="fundoTituloForm bordaFormResp">Per&iacute;odo: </td>
                 	<td valign="top" class="bordaFormResp">de:&nbsp;<input type="text" name="data_inicio" id="data_inicio" class="formulario" size="10">&nbsp;&nbsp;&agrave;:&nbsp;<input type="text" name="data_fim" id="data_fim" class="formulario" size="10"></td>
				</tr>
				<tr>
        			<td class="fundoTituloForm bordaFormResp">Status da Proposta</td>
                 	<td valign="top" class="bordaFormResp"><select name="busca_status" id="busca_status" class="formulario"></select></td>
				</tr>
            </table>          
		</td>
	</tr>
    <tr>
       	<td class="paddingTop15 paddingBottom15" align="center">
           	<span class="paddingRight15">
              	<input type="submit" value="Visualizar" class="botao">
            </span>
            <span class="paddingRight15">
    	        <input name="limpar" type="reset" id="Limpar" value="Limpar" class="botao"/>
            </span>
            <input type="button" value="Cancelar" onclick="cancelar(); return false;" class="botao">
         </td>
     </tr>
</table>	
</form>
<div id="div_resultado"></div>
